package com.riq;

import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Set;

import javax.cache.Cache;
import javax.cache.CacheEntry;
import javax.cache.CacheListener;
import javax.cache.CacheStatistics;


 /**
  * An empty cache for use when memcache is not working.
  */
 public class EmptyCache implements Cache {

   @Override
   public boolean containsKey(Object o) {
     return false;
   }

   @Override
   public boolean containsValue(Object o) { 
     return false;
   }

   @Override
   public Set entrySet() {
     return Collections.emptySet();
   }

   @Override
   public boolean isEmpty() {
     return true;
   }

   @Override
   public Set keySet() {
     return Collections.emptySet();
   }

   @Override
   public void putAll(Map map) {
   }

   @Override
   public int size() {
     return 0;
   }

   @Override
   public Collection values() {
     return Collections.emptySet();
   }

   @Override
   public Object get(Object o) {
     return null;
   }

   @Override
   public Map getAll(Collection collection) {
     return Collections.emptyMap();
   }

   @Override
   public void load(Object o) {
   }

   @Override
   public void loadAll(Collection collection) {
   }

   @Override
   public Object peek(Object o) {
     return null;
   }

   @Override
   public Object put(Object o, Object o1) {
     return null;
   }

   @Override
   public CacheEntry getCacheEntry(Object o) {
     return null;
   }

   @Override
   public CacheStatistics getCacheStatistics() {
     return null;
   }

   @Override
   public Object remove(Object o) {
     return null;
   }

   @Override
   public void clear() {
   }

   @Override
   public void evict() {
   }

   @Override
   public void addListener(CacheListener cacheListener) {
   }

   @Override
   public void removeListener(CacheListener cacheListener) {
   }

  
}